import Mock from 'mockjs'
import { login, logout } from './login'
import { getTableData, getDragList } from './data'
// import { getUserList, getRoleList, saveUser, delUser } from './user'
// import { getResources } from './resources'
// import { getUnitTree } from './unit'

// 登录相关和获取用户信息
Mock.mock(/\/login/, login)
// Mock.mock(/\/get_info/, getUserInfo)
Mock.mock(/\/logout/, logout)
Mock.mock(/\/get_table_data/, getTableData)
Mock.mock(/\/get_drag_list/, getDragList)
Mock.mock(/\/save_error_logger/, 'success')
// Mock.mock(/\/sys\/users/, 'get', getUserList)
// Mock.mock(/\/sys\/user/, 'post', saveUser)
// Mock.mock(/\/sys\/user/, 'delete', delUser)
// Mock.mock(/\/sys\/groups/, getRoleList)
// Mock.mock(/\/sys\/resources/, getResources)
// Mock.mock(/\/sys\/units/, getUnitTree)

export default Mock
